using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Game.UI {
	public class ColoredTrail : MonoBehaviour {
		public List<Material> TrailMaterials;

		public TrailRenderer Trail;

		public void SetMaterial(TeamType team) {
			var index = (int)team;
			var material = TrailMaterials[index];
			if ( Trail && material ) {
				Trail.material= material;
			}
		}
	}

}
